(function(){

   var a= {
        exec:function(editor){
       var ret = showDialog(getHost() + "/images/imagelist/index/PageMode/1", "-1", "-1", "980px", "470px","yes", "yes", "no", "yes");
       if (ret != ""&& ret != null) {
           var arrImagePath = getImagePath(ret, 0);
           if (arrImagePath[0] != "") {
               strImagePath = "<img src=\"" + arrImagePath[0] + "\" alt=\"" + arrImagePath[0] + "\" />";
           } else {}
           editor.insertHtml(strImagePath);
       }
        }
    },

    b='imgLinkInsert';
    CKEDITOR.plugins.add(b,{
        requires:['dialog'],
        init:function(editor){
            editor.addCommand(b,a);
            editor.ui.addButton(b,{
                label:'画像挿入',
                icon: this.path + '1.png',
                command:b
            });
        }
    });
})();
